home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: int2str.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 69 6e 74 32 73 74 72 |\section|{int2str|
|00000010| 20 2d 2d 2d 20 69 6e 74 | 65 67 65 72 20 74 6f 20 | --- int|eger to |
|00000020| 73 74 72 69 6e 67 20 63 | 6f 6e 76 65 72 73 69 6f |string c|onversio|
|00000030| 6e 7d 0d 5c 6c 61 62 65 | 6c 7b 66 6e 3a 69 6e 74 |n}.\labe|l{fn:int|
|00000040| 32 73 74 72 7d 0d 5c 69 | 6e 64 65 78 7b 69 6e 74 |2str}.\i|ndex{int|
|00000050| 32 73 74 72 28 29 7d 0d | 5c 69 6e 64 65 78 7b 69 |2str()}.|\index{i|
|00000060| 6e 74 65 67 65 72 20 74 | 6f 20 73 74 72 69 6e 67 |nteger t|o string|
|00000070| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 7d 0d 5c 62 65 | convers|ion}.\be|
|00000080| 67 69 6e 7b 72 61 69 6c | 7d 0d 69 6e 74 32 73 74 |gin{rail|}.int2st|
|00000090| 72 3a 20 27 69 6e 74 32 | 73 74 72 27 20 27 28 27 |r: 'int2|str' '('|
|000000a0| 20 53 63 61 6c 61 72 20 | 27 29 27 20 3b 0d 5c 65 | Scalar |')' ;.\e|
|000000b0| 6e 64 7b 72 61 69 6c 7d | 0d 0d 5c 76 65 72 62 2b |nd{rail}|..\verb+|
|000000c0| 69 6e 74 32 73 74 72 2b | 20 74 61 6b 65 73 20 61 |int2str+| takes a|
|000000d0| 20 73 63 61 6c 61 72 20 | 61 72 67 75 6d 65 6e 74 | scalar |argument|
|000000e0| 2c 20 61 6e 64 20 63 6f | 6e 76 65 72 74 73 20 69 |, and co|nverts i|
|000000f0| 74 20 74 6f 20 61 20 73 | 74 72 69 6e 67 2e 0d 49 |t to a s|tring..I|
|00000100| 74 20 69 73 20 69 6e 74 | 65 6e 64 65 64 20 74 68 |t is int|ended th|
|00000110| 61 74 20 74 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |at the a|rgument |
|00000120| 62 65 20 69 6e 74 65 67 | 65 72 20 2d 20 69 66 20 |be integ|er - if |
|00000130| 69 74 20 68 61 73 20 61 | 6e 79 20 66 72 61 63 74 |it has a|ny fract|
|00000140| 69 6f 6e 61 6c 0d 70 61 | 72 74 2c 20 74 68 69 73 |ional.pa|rt, this|
|00000150| 20 77 69 6c 6c 20 62 65 | 20 72 6f 75 6e 64 65 64 | will be| rounded|
|00000160| 20 6f 66 66 2e 0d 0d 24 | 5c 4c 6f 6e 67 72 69 67 | off...$|\Longrig|
|00000170| 68 74 61 72 72 6f 77 24 | 20 54 68 69 73 20 69 73 |htarrow$| This is|
|00000180| 20 6e 6f 74 20 61 6e 20 | 5c 52 4c 61 42 5c 20 62 | not an |\RLaB\ b|
|00000190| 75 69 6c 74 2d 69 6e 20 | 66 75 6e 63 74 69 6f 6e |uilt-in |function|
|000001a0| 2e 20 20 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |. This |function|
|000001b0| 0d 69 73 20 6e 6f 72 6d | 61 6c 6c 79 20 6c 6f 61 |.is norm|ally loa|
|000001c0| 64 65 64 20 6f 6e 20 73 | 74 61 72 74 2d 75 70 20 |ded on s|tart-up |
|000001d0| 66 72 6f 6d 20 74 68 65 | 20 5c 76 65 72 62 2b 69 |from the| \verb+i|
|000001e0| 6e 74 32 73 74 72 2e 72 | 2b 20 66 69 6c 65 20 69 |nt2str.r|+ file i|
|000001f0| 6e 20 74 68 65 0d 73 74 | 61 6e 64 61 72 64 20 5c |n the.st|andard \|
|00000200| 76 65 72 62 2b 72 6c 69 | 62 2b 20 64 69 72 65 63 |verb+rli|b+ direc|
|00000210| 74 6f 72 79 2e 20 55 73 | 65 20 6f 66 20 74 68 65 |tory. Us|e of the|
|00000220| 20 5c 76 65 72 62 2b 2d | 72 2b 20 6f 70 74 69 6f | \verb+-|r+ optio|
|00000230| 6e 2c 20 69 6e 63 6f 72 | 72 65 63 74 6c 79 20 0d |n, incor|rectly .|
|00000240| 73 65 74 74 69 6e 67 20 | 74 68 65 20 5c 76 65 72 |setting |the \ver|
|00000250| 62 2b 52 4c 41 42 5f 4c | 49 42 5f 44 49 52 2b 20 |b+RLAB_L|IB_DIR+ |
|00000260| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 61 6c 20 76 61 |environm|ental va|
|00000270| 72 69 61 62 6c 65 2c 20 | 6f 72 20 6d 6f 64 69 66 |riable, |or modif|
|00000280| 79 69 6e 67 0d 5c 76 65 | 72 62 2b 69 6e 74 32 73 |ying.\ve|rb+int2s|
|00000290| 74 72 2e 72 2b 20 6d 61 | 79 20 6d 61 6b 65 20 74 |tr.r+ ma|y make t|
|000002a0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 75 6e 61 |his func|tion una|
|000002b0| 76 61 69 6c 61 62 6c 65 | 2e 0d 0d 0d 5c 70 61 72 |vailable|....\par|
|000002c0| 61 67 72 61 70 68 7b 45 | 78 61 6d 70 6c 65 7d 0d |agraph{E|xample}.|
|000002d0| 5c 69 6e 64 65 78 7b 65 | 78 61 6d 70 6c 65 20 6f |\index{e|xample o|
|000002e0| 66 20 69 6e 74 32 73 74 | 72 28 29 7d 0d 5c 69 6e |f int2st|r()}.\in|
|000002f0| 64 65 78 7b 69 6e 74 32 | 73 74 72 28 29 21 65 78 |dex{int2|str()!ex|
|00000300| 61 6d 70 6c 65 7d 0d 5c | 62 65 67 69 6e 7b 76 65 |ample}.\|begin{ve|
|00000310| 72 62 61 74 69 6d 7d 0d | 3e 20 61 20 3d 20 69 6e |rbatim}.|> a = in|
|00000320| 74 32 73 74 72 28 37 34 | 29 0d 37 34 0d 3e 20 73 |t2str(74|).74.> s|
|00000330| 68 6f 77 28 61 29 0d 20 | 20 20 6e 61 6d 65 3a 20 |how(a). | name: |
|00000340| 20 20 20 20 20 61 20 20 | 20 20 20 20 20 0d 20 20 | a | . |
|00000350| 20 63 6c 61 73 73 3a 20 | 20 20 20 20 73 74 72 69 | class: | stri|
|00000360| 6e 67 20 20 0d 20 20 20 | 20 74 79 70 65 3a 20 20 |ng . | type: |
|00000370| 20 20 20 73 74 72 69 6e | 67 20 20 0d 20 20 20 20 | strin|g . |
|00000380| 20 6e 72 3a 20 20 20 20 | 20 20 31 20 20 20 20 20 | nr: | 1 |
|00000390| 20 20 0d 20 20 20 20 20 | 6e 63 3a 20 20 20 20 20 | . |nc: |
|000003a0| 20 31 20 20 20 20 20 20 | 20 0d 3e 20 62 20 3d 20 | 1 | .> b = |
|000003b0| 22 37 34 22 0d 37 34 0d | 3e 20 61 20 3d 3d 20 62 |"74".74.|> a == b|
|000003c0| 0d 20 20 20 20 20 20 20 | 20 31 0d 3e 20 63 20 3d |. | 1.> c =|
|000003d0| 20 69 6e 74 32 73 74 72 | 28 37 33 2e 39 35 29 0d | int2str|(73.95).|
|000003e0| 37 34 0d 3e 20 73 68 6f | 77 28 63 29 0d 20 20 20 |74.> sho|w(c). |
|000003f0| 6e 61 6d 65 3a 20 20 20 | 20 20 20 63 20 20 20 20 |name: | c |
|00000400| 20 20 20 0d 20 20 20 63 | 6c 61 73 73 3a 20 20 20 | . c|lass: |
|00000410| 20 20 73 74 72 69 6e 67 | 20 20 0d 20 20 20 20 74 | string| . t|
|00000420| 79 70 65 3a 20 20 20 20 | 20 73 74 72 69 6e 67 20 |ype: | string |
|00000430| 20 0d 20 20 20 20 20 6e | 72 3a 20 20 20 20 20 20 | . n|r: |
|00000440| 31 20 20 20 20 20 20 20 | 0d 20 20 20 20 20 6e 63 |1 |. nc|
|00000450| 3a 20 20 20 20 20 20 31 | 20 20 20 20 20 20 20 0d |: 1| .|
|00000460| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0d 0d |\end{ver|batim}..|
|00000470| 53 65 65 20 61 6c 73 6f | 3a 20 50 61 67 65 7e 5c |See also|: Page~\|
|00000480| 70 61 67 65 72 65 66 7b | 66 6e 3a 6e 75 6d 32 73 |pageref{|fn:num2s|
|00000490| 74 72 7d 20 5c 76 65 72 | 62 2b 6e 75 6d 32 73 74 |tr} \ver|b+num2st|
|000004a0| 72 28 29 2b 2c 0d 50 61 | 67 65 7e 5c 70 61 67 65 |r()+,.Pa|ge~\page|
|000004b0| 72 65 66 7b 66 6e 3a 73 | 70 72 69 6e 74 66 7d 20 |ref{fn:s|printf} |
|000004c0| 5c 76 65 72 62 2b 73 70 | 72 69 6e 74 66 28 29 2b |\verb+sp|rintf()+|
|000004d0| 2e 0d 0d 5c 6e 65 77 70 | 61 67 65 0d 0d 0d |...\newp|age... |
+--------+-------------------------+-------------------------+--------+--------+